import os
import shutil
import time

fileName='VoteContract04'

os.system('solcjs .\\' + fileName + '.sol --bin --abi --optimize -o output/')

os.system('web3j generate solidity -b .\\output\\__' + fileName + '_sol_' + fileName + '.bin -a .\\output\\__' + fileName + '_sol_' + fileName + '.abi -o output/ -p org.vs.test.contract')

os.remove('.\\output\\__' + fileName + '_sol_' + fileName + '.bin') 
os.remove('.\\output\\__' + fileName + '_sol_' + fileName + '.abi')
# os.remove('F:\\Program\\java\\vote-system\\src\\test\\java\\org\\vs\\test\\contract\\__' + fileName + '_sol_' + fileName + '.java')
# time.sleep(2)
# shutil.move('F:\\Program\java\\vote-system\\src\\test\\resources\\contract\\output\\org\\vs\\test\\contract\\__' + fileName + '_sol_' + fileName + '.java',
#             'F:\\Program\\java\\vote-system\\src\\test\\java\\org\\vs\\test\\contract')
